package com.ciko.code.bean;

import com.ciko.code.annotations.Column;

import java.io.Serializable;



/**
 * 用户信息
 * 
 * @author 刘宾
 * @date 2014年8月11日 上午11:12:54
 */
public class UserBean
        implements
        Serializable
{
	private static final long serialVersionUID = 7211046465598670905L;
	@Column(primaryKey = true)
	private int               id;
	private String            soundId;
	private String            imsi;
	private String            account;
	private String            password;
	private String            headImage;
	private String            nickName;
	private String            sex;
	private String            birthday;
	private String            key;
	private long              loginTime;
	private int               loginStatus;
	private int               isKeepPwd;
	private long              closeTime;                              //服务到期时间
	private String            imAccount;                              //云信账号
	private String            imToken;                                //云信token
	                                                                   
	//	private String            age;
	//	private String            department;
	//	private String            enterpriseId;
	//	private String            serviceFinishTime;
	private String            staffId;
	
	//	private String            staffName;
	//	private String            staffPhone;
	//	private String            staffPosition;
	//	private int               status;
	
	private String homeTown;
	private String liveNow;
	private String interest;
	private String job;
	private String desc;
	
	public UserBean() {
		super();
	}
	
	public UserBean(String account, String password, String key, long loginTime, int isKeepPwd, String imAccount, String imToken, String staffId) {
		super();
		this.account = account;
		this.password = password;
		this.key = key;
		this.loginTime = loginTime;
		this.isKeepPwd = isKeepPwd;
		this.imAccount = imAccount;
		this.imToken = imToken;
		this.staffId = staffId;
	}
	
	public UserBean(String account, String password) {
		super();
		this.account = account;
		this.password = password;
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * @return the soundId
	 */
	public String getSoundId() {
		return soundId;
	}
	
	/**
	 * @param soundId
	 *            the soundId to set
	 */
	public void setSoundId(String soundId) {
		this.soundId = soundId;
	}
	
	/**
	 * @return the imsi
	 */
	public String getImsi() {
		return imsi;
	}
	
	/**
	 * @param imsi
	 *            the imsi to set
	 */
	public void setImsi(String imsi) {
		this.imsi = imsi;
	}
	
	/**
	 * @return the account
	 */
	public String getAccount() {
		return account;
	}
	
	/**
	 * @param account
	 *            the account to set
	 */
	public void setAccount(String account) {
		this.account = account;
	}
	
	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * @return the headImage
	 */
	public String getHeadImage() {
		return headImage;
	}
	
	/**
	 * @param headImage
	 *            the headImage to set
	 */
	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}
	
	/**
	 * @return the nickName
	 */
	public String getNickName() {
		return nickName;
	}
	
	/**
	 * @param nickName
	 *            the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}
	
	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(String sex) {
		this.sex = (sex.equals("男") || (sex.equals("0"))) ? "0" : "1";
	}
	
	/**
	 * @return the birthday
	 */
	public String getBirthday() {
		return birthday;
	}
	
	/**
	 * @param birthday
	 *            the birthday to set
	 */
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	
	/**
	 * @return the key
	 */
	public String getKey() {
		return key;
	}
	
	/**
	 * @param key
	 *            the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}
	
	/**
	 * @return the loginTime
	 */
	public long getLoginTime() {
		return loginTime;
	}
	
	/**
	 * @param loginTime
	 *            the loginTime to set
	 */
	public void setLoginTime(long loginTime) {
		this.loginTime = loginTime;
	}
	
	/**
	 * @return the loginStatus
	 */
	public int getLoginStatus() {
		return loginStatus;
	}
	
	/**
	 * @param loginStatus
	 *            the loginStatus to set
	 */
	public void setLoginStatus(int loginStatus) {
		this.loginStatus = loginStatus;
	}
	
	/**
	 * @return the isKeepPwd
	 */
	public int getIsKeepPwd() {
		return isKeepPwd;
	}
	
	/**
	 * @param isKeepPwd
	 *            the isKeepPwd to set
	 */
	public void setIsKeepPwd(int isKeepPwd) {
		this.isKeepPwd = isKeepPwd;
	}
	
	/**
	 * @return the closeTime
	 */
	public long getCloseTime() {
		return closeTime;
	}
	
	/**
	 * @param closeTime
	 *            the closeTime to set
	 */
	public void setCloseTime(long closeTime) {
		this.closeTime = closeTime;
	}
	
	/**
	 * @return the imAccount
	 */
	public String getImAccount() {
		return imAccount;
	}
	
	/**
	 * @param imAccount
	 *            the imAccount to set
	 */
	public void setImAccount(String imAccount) {
		this.imAccount = imAccount;
	}
	
	/**
	 * @return the imToken
	 */
	public String getImToken() {
		return imToken;
	}
	
	/**
	 * @param imToken
	 *            the imToken to set
	 */
	public void setImToken(String imToken) {
		this.imToken = imToken;
	}
	
	
	public String getHomeTown() {
		return homeTown;
	}

	public void setHomeTown(String homeTown) {
		this.homeTown = homeTown;
	}

	public String getLiveNow() {
		return liveNow;
	}

	public void setLiveNow(String liveNow) {
		this.liveNow = liveNow;
	}

	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "UserBean [id=" + id + ",staffId=" + staffId + ", soundId=" + soundId + ", imsi=" + imsi + ", account=" + account + ", password=" + password + ", headUrl=" + headImage + ", nickName=" + nickName + ", sex=" + sex + ", birthday=" + birthday + ", loginStatus=" + loginStatus + ", isKeepPwd=" + isKeepPwd + "]";
	}
	
	public String getStaffId() {
		return staffId;
	}
	
	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}
	
}
